﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.Master" AutoEventWireup="true" CodeBehind="kategoriler.aspx.cs" Inherits="Elektronix.admin.kategoriler" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <table>
        <br />
        <br />
        <br />
        <tr>
            <th> Kategori Adı</th>
            <th> Acıklama</th>
        </tr>
        <tr>
            <td> <asp:TextBox ID="txtKategoriAdi" runat="server"></asp:TextBox> </td>
            <td> <asp:TextBox ID="txtAciklama" runat="server"></asp:TextBox> </td>
            <td><asp:Button ID="btnKategori" runat="server" Text="Kategori Ekle" OnClick="btnKategori_Click" /></td>
        </tr>
    </table>
  
        <br />
        <br />



    <table>
        <tr>
            <th>Sil</th>
            <th>Güncelle</th>
            <th>Kategori ID    </th>
            <th>Kategori Adı</th>
            <th>Acıklama</th>
        </tr>
        <tr>
            <th>-------</th>
            <th>--------</th>
            <th><asp:TextBox ID="txtCatID" runat="server" Enabled="false"></asp:TextBox></th>
            <th><asp:TextBox ID="txtCatname" runat="server"></asp:TextBox></th>
            <th><asp:TextBox ID="txtDesc" runat="server"></asp:TextBox></th>
            <th><asp:Button ID="btnKaydet" runat="server" Text="Değişiklikleri Kaydet" OnClick="btnKaydet_Click" /></th>
        </tr>


        <asp:Repeater ID="RepeaterKategoriler" runat="server">
            <ItemTemplate>
        <tr>
            <td><a href='kategoriler.aspx?sil=<%#Eval("categoryID") %>'>Sil</a></td>
            <td><a href='kategoriler.aspx?gnc=<%#Eval("categoryID") %>'>Güncelle</a></td>
            <td><%#Eval("categoryID") %></td>
            <td><%#Eval("categoryname") %></td>
            <td><%#Eval("description") %></td>
        </tr>
             </ItemTemplate>
            </asp:Repeater>
    </table>

</asp:Content>
